package cn.lds.healthexamspringboot.domain;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.util.Date;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author christopher
 * @since 2025-02-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("appointment_record")
public class AppointmentRecord implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private Integer examPackageId;

    private Long userId;

    @DateTimeFormat(pattern = "yyyy-MM-dd'T'HH:mm")
    private LocalDateTime appointmentTime;

    private Long createBy;

    private Date createTime;

    private Long modifyBy;

    private Date modifyTime;

    private Integer appointmentStatus;

    @TableLogic
    private Integer isDeleted;

    @TableField(exist = false)
    private HealthExamPackage healthExamPackage;
    @TableField(exist = false)
    private User user;


}
